import type { TurboModule } from "react-native/Libraries/TurboModule/RCTExport";
import { TurboModuleRegistry } from "react-native";

export interface Spec extends TurboModule {
  open(options:{ hour: number, minute: number, is24Hour: boolean, mode: 'clock' |'spinner' | 'default'}): Promise<{
    action: 'timeSetAction' | 'dismissedAction', 
    hour?: number, 
    minute?: number
  }>;
}

export default TurboModuleRegistry.get<Spec>("RTNTimePickerAndroid") as Spec | null;